<template>
  <div class="prefile">
        <img v-if="src" :src=src alt="">
        <img v-if="!src" src="@/assets/image/mypage/prefile.png" alt="">
  </div>
</template>

<script>
export default {
    props:{
        src:{
            type:String,
            default:"",
        }
    }
}
</script>

<style scoped>
.prefile{
    width: 100px;
    height: 100px;
}
img{
    width: 100%;
    height: 100%;border-radius: 50%;
    object-fit: cover;
}
</style>